<!--优惠活动页面-->
{include file="public/header"}
	<script type="text/javascript">
	function youhuihuodong(iud){
		
		var xiansid="youhui_"+iud;
		
		var ifhsd=document.getElementById(xiansid).style.display;
		
		if(ifhsd=="none"){
			
			for(var r=1;r<=100;r++){
		
				var anniuid="youhui_"+r;
				
				if($("#"+anniuid).length>0){
					
					$('#'+anniuid).hide();
					
				}
			
			}
			
			$('#youhui_'+iud).show();
		
		}else{
		
			for(var r=1;r<=100;r++){
		
				var anniuid="youhui_"+r;
				
				if($("#"+anniuid).length>0){
					
					$('#'+anniuid).hide();
					
				}
			
			}
		
		}

	}	
	
	</script>
    <!-- end  16-09-30 :  下面解决iscroll自带 bug (bugID=1613) -->
</head>
<style type="text/css">
	.title{
		margin-bottom: 7px;
	    margin-top: 10px;
	    margin-left: 10px;
	    font-size: 16px;
	}
	.img_box{
		margin-left: 7px;
	}
	.sub{
		font-size: 12px;
	    color: #666;
	    padding-left: 8px;
	    margin-top: 3px;
	    margin-bottom: 5px;
	}
</style>
<body><!-- onload='loaded()' -->
<div class="header">
    <div class="headerTop">
        <div class="ui-toolbar-left">
            <button id="reveal-left" onClick="window.history.go(-1);">reveal</button>
        </div>
        <h1 class="ui-toolbar-title">优惠活动</h1>
      
    </div>
</div>
<div class="lott-menu">
    
</div>
<div style="width:98%; margin:auto; margin-top:50px;">
	 {foreach $youhui_list as $k=>$youhui_single}
	 	 <div class='box' style="width: 98%;margin: auto;margin-top: 10px;border: 1px solid #ccc;border-radius: 6px;">
	 	 <p class="title">{$youhui_single.title}</p>
			 <div class='accordion-header'>
			 <div class='show_box' onClick='youhuihuodong({$k+1});'>
			 <div class='left img_box'><a href="{:url('Show/youhui_detail')}?id={$youhui_single.id}"><img src="__ATTACHMENT__/{$youhui_single.pic}"width='98%' height='50' alt='' style="border-radius: 3px;height: 243%;"></a></div>
			 </div>  
			 </div>
			 
			 <p class="sub">活动时间：{$youhui_single.begin_time} 至 {$youhui_single.end_time}<span style="float: right;margin-right: 14px;"><a href=" {:url('Show/youhui_detail')}?id={$youhui_single.id}">查看详情 >></a></span></p>
			</div>
	 {/foreach}
</div>
</body></html>